Loader = Loader or Class("Loader")

---@diagnostic disable-next-line: duplicate-set-field
function Loader:ctor(path)
    self.path = path
end

function Loader:loadSpriteFrame(path)
    return ResourceSystem:loadSpriteFrame(self.path.."/resources/images/"..path)
end

function Loader:loadIcon(path)
    return self:loadSpriteFrame("icons/"..path)
end

function Loader:loadPanel(path)
    return self:loadSpriteFrame("panels/"..path)
end